<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> 
<!DOCTYPE html>
<html lang="zh-CN" >
<head>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>主要人员信息列表</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body class="iframeBody">
        <form id="prd_spl_rl_psn_form">
            <div class="fieldset1 tabel_col tabel_col_s clearFix">
                <div class="fieldBox col_50">
                    <div class="label">联系人类型</div>
                    <div class="field">
                    	<span name="rlTypCdNm" id="rlTypCdNm">&nbsp;</span>
                    </div>
                </div>
                <div class="fieldBox col_50">
                    <div class="label">姓名</div>
                    <div class="field">
                        <span name="rlNm" id="rlNm">&nbsp;</span>
                    </div>
                </div>
                <div class="fieldBox col_50">
                    <div class="label">证件类型</div>
                    <div class="field">
                    	<span name="certTypCdNm" id="certTypCdNm">&nbsp;</span>
                    </div>
                </div>
                <div class="fieldBox col_50">
                    <div class="label">证件号</div>
                    <div class="field">
                        <span name="certNo" id="certNo">&nbsp;</span>
                    </div>
                </div>
                <div class="fieldBox col_50">
                    <div class="label">联系电话</div>
                    <div class="field">
                        <span name="tel" id="tel">&nbsp;</span>
                    </div>
                </div>
                <div class="fieldBox col_100">
                    <div class="label">备注</div>
                    <div class="field">
                        <span name="rlRem" id="rlRem">&nbsp;</span>
                    </div>
                </div>
                <div class="fieldBox col_100" style="display:none;">
		          <div class="field">
		              <input name=rId id="rId" type="hidden" value="${rId}">
		          </div>
		        </div>
            </div>
        </form>
<script>
	$(function() {
	   $("#prd_spl_rl_psn_form").ligerForm({
	              validate: true
	         });
	       initData();
	       SET_popupIframeHeight();
	});
	frameElement.dialog.onCancel = function () {
	    frameElement.dialog.close();
	}
	function initData(){
		var rId = $("#rId").val();
	   	if(!rId)return;
	   	var _url = '<%=path%>/product/splRlPsn/getById.do';
	   	$.ajax({
	   		type: 'get',
	   		dataType:'json',
	   		data:{id:rId},
	   		url: _url,
	   		success:function(msg){
	   			 if(msg.success == 1){
	   				 setData(msg.data);//设置数据
	   			 }else{
	   				 ligerDialogSuc(msg.info, 3000);
	   			 }
	   		}
	   	});
	}
		
	//设置页面数据
    function setData(data){
    	var form = new liger.get("prd_spl_rl_psn_form");
    	$("#rlTypCdNm").html(data.rlTypCdNm);
    	$("#rlNm").html(data.rlNm);
    	$("#certTypCdNm").html(data.certTypCdNm);
    	$("#certNo").html(data.certNo);
    	$("#tel").html(data.tel);
    	$("#rlRem").html(data.rlRem);
	};
</script>
</body>
</html>
